package com.xyoto.takeawayUser.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;


/**
 * @ClassName: 新增轮播图Dto
 * @Author: 挽风
 * @Date: 2022
 * @Copyright: 2022 by 挽风
 * @Description:
 **/

@ApiModel("SaveCarouselDo")
@Data
public class SaveCarouselDto {


    @ApiModelProperty(value = "轮播图文件", required = true)
    private MultipartFile file;

    @ApiModelProperty(value = "资源跳转链接", required = false)
    private String link;

    @ApiModelProperty(value = "展示顺序", required = true)
    private Integer order;

    @ApiModelProperty(value = "状态（1：启用， 2：未启用）", required = true)
    private Short status;

    public SaveCarouselDto(){
        this.status = 1;
    }
}
